#!/bin/bash

#给沙箱赋权限
chmod 4755 /opt/apps/com.github.clash-for-windows/files/chrome-sandbox
chmod 4755 /opt/apps/com.github.clash-for-windows/files/chrome_crashpad_handler

# #创建软件图标
# echo "创建软件图标"
# if ! [ -f /usr/share/applications/com.github.clash-for-windows.desktop ]
# then
# ln -s /opt/apps/com.github.clash-for-windows/entries/applications/com.github.clash-for-windows.desktop /usr/share/applications/com.github.clash-for-windows.desktop
# fi
# for i in {16,24,32,48,128,256,512}
#     do
#       if ! [ -f /usr/share/icons/hicolor/$i\x$i/apps/com.github.clash-for-windows.png ]
#       then
#       ln -s /opt/apps/com.github.clash-for-windows/entries/icons/hicolor/$i\x$i/apps/com.github.clash-for-windows.png /usr/share/icons/hicolor/$i\x$i/apps/com.github.clash-for-windows.png
#       fi
#     done